<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	 <span class="color_red">*</span>主要完成人情况
</div>
<table id="zh_persons" border="0" cellspacing="0" cellpadding="0"
	class="table01">
	<thead>
		<tr>
			<th width="7%">选择</th>
			<th nowrap>序号</th>
			<th width="11%">姓名</th>
			<th width="13%">电子邮件</th>
			<th width="12%">单位电话</th>
			<th width="17%">工作单位</th>
			<th width="11%">学位</th>
			<th width="12%">职务</th>
			<th width="12%">职称</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center" width="50px">
				<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn3()"/>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]@seq_no">[index]</span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|basic_info|zh_name" label="姓名"></span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|contact|email" label="电子邮箱"></span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|contact|tel_work" label="联系电话"></span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|basic_info|org_name" label="工作单位"></span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|basic_info|degree_name" 　label="学位"></span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|basic_info|position_2" 　label="职务"></span>
			</td>
			<td align="center">
				<span name="zh_persons|zh_person[0]|basic_info|prof_title_name" label="职称"></span>
			</td>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_value" label="民族" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_name" label="民族" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|birth_area" label="出生地" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|org_code" label="工作单位 code" />
			<input type="hidden" name="zh_persons|zh_person[0]|contact|post_code" label="邮政编码" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_value" label="学位" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|graduate_college" label="毕业学校" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|home_address" label="手机号码" />
			<input type="hidden" name="zh_persons|zh_person[0]|contact|mobile" label="住宅电话" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|address" label="通讯地址" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title" label="职称" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title_value" label="职称" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|gender_value" label="性别" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|gender_name" label="性别 name" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|age" label="年龄" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|educate_value" label="最高学历" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|educate_name" />
			<input type="hidden" name="zh_persons|zh_person[0]|researches" label="xml" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_code" label="身份证号" />
			<input type="hidden" name="zh_persons|zh_person[0]|contact|major" label="所学专业" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|birthday" label="出生日期" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|graduation_date" label="毕业时间" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|graduation_time" label="毕业时间 time" />
			<!-- <input type="hidden" name="zh_persons|zh_person[0]|basic_info|isyuansi_name" label="是否是院士" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|isyuansi_value" label="是否是院士 value" /> -->
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|party_name" label="党派" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|party_value" label="党派 value" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prj_startdate" label="本项目开始日期" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prj_enddate" label="本项目结束日期" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_honour" label="完成人荣誉" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_honour_hidden" label="完成人荣誉2" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_creativity_contribute" label="创造性贡献" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_creativity_contribute_hidden" label="创造性贡献2" />
			
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|second_unit" label="二级单位" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_value" label="归国人员" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_name" label="归国人员"/>
			
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_date" label="归国日期" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_time" label="归国日期" />
			
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|finish_unit" label="完成单位" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_award_condition" label="曾获科技奖励情况" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_award_condition_hidden" label="曾获科技奖励情况" />
			
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center" width="50px">
					<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn3()" /> 
					<c:if test="${index==0}">
						<input type="hidden" id="submit_psn"
							name="zh_persons/zh_person[${flag}${index}]@submit_psn" value="1" />
						<input type="hidden"
							name="zh_persons/zh_person[${flag}${index}]/basic_info/psn_code"
							value="<x:out select="$zh_person/basic_info/psn_code" />" />
					</c:if>
				</td>
				<td align="center"><span
					name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
				</td>
				<td align="center">
					<span class="required " label="姓名" name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"> 
						<x:out select="$zh_person/basic_info/zh_name" />
					</span>
				
					<input type="hidden" class="" label="性别 name" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_name"
						value="<x:out select="$zh_person/basic_info/gender_name" />" />
					<input type="hidden" class="required" label="民族" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name"
						value="<x:out select="$zh_person/basic_info/ethnicity_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value"
						value="<x:out select="$zh_person/basic_info/ethnicity_value" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/overseas_name"
						value="<x:out select="$zh_person/basic_info/overseas_name" />" />
						
					<input type="hidden" class="required" label="性别" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value"
						value="<x:out select="$zh_person/basic_info/gender_value" />" />
						
					<input type="hidden" class="required" label="出生日期" name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"
					value="<x:out select="$zh_person/basic_info/birthday" />" />
					
					<input type="hidden" class="" label="住宅电话" name="zh_persons/zh_person[${flag}${index}]/contact/mobile"
					value="<x:out select="$zh_person/contact/mobile" />" />
					
					<input type="hidden" class="required" label="通讯地址" name="zh_persons/zh_person[${flag}${index}]/basic_info/address"
						value="<x:out select="$zh_person/basic_info/address" />" />
					<input type="hidden" class="required" label="出生地" name="zh_persons/zh_person[${flag}${index}]/basic_info/birth_area"
						value="<x:out select="$zh_person/basic_info/birth_area" />" />
					<input type="hidden" class="required" label="邮政编码" name="zh_persons/zh_person[${flag}${index}]/contact/post_code"
						value="<x:out select="$zh_person/contact/post_code" />" />
					<input type="hidden"  label="最高学历" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"
						value="<x:out select="$zh_person/basic_info/educate_name" />" />
					<input type="hidden" class="required" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value"
						value="<x:out select="$zh_person/basic_info/educate_value" />" />
					<%-- <input type="hidden" class="required" label="是否是院士" name="zh_persons/zh_person[${flag}${index}]/basic_info/isyuansi_name"
						value="<x:out select="$zh_person/basic_info/isyuansi_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/isyuansi_value"
						value="<x:out select="$zh_person/basic_info/isyuansi_value" />" /> --%>
					<input type="hidden" class="required" label="党派" name="zh_persons/zh_person[${flag}${index}]/basic_info/party_name"
						value="<x:out select="$zh_person/basic_info/party_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/party_value"
						value="<x:out select="$zh_person/basic_info/party_value" />" />
					<input type="hidden" class="" label="工作单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code"
						value="<x:out select="$zh_person/basic_info/org_code" />" />
					
					<input type="hidden" class="required" label="身份证号码" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code"
						value="<x:out select="$zh_person/basic_info/card_code" />" /></td>
						
						
						
						
						
					<input type="hidden" class="required" label="归国人员" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_name"
						value="<x:out select="$zh_person/basic_info/homecoming_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_value"
						value="<x:out select="$zh_person/basic_info/homecoming_value" />" />
						  
					<input type="hidden" class="" label="归国日期" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_date"
						value="<x:out select="$zh_person/basic_info/homecoming_date" />" />
					<input type="hidden" class="" label="归国日期" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_time"
						value="<x:out select="$zh_person/basic_info/homecoming_time" />" />
					  
					  
						
					<input type="hidden" class="" label="二级单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/second_unit"
						value="<x:out select="$zh_person/basic_info/second_unit" />" />	
						
					<input type="hidden" class="required" label="完成单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/finish_unit"
						value="<x:out select="$zh_person/basic_info/finish_unit" />" />
						
					<input type="hidden" class="" label="曾获科技奖励情况" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_award_condition"
						value="<x:out select="$zh_person/basic_info/wcr_award_condition" />" />
					<input type="hidden" class="" label="曾获科技奖励情况" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_award_condition_hidden"
						value="<x:out select="$zh_person/basic_info/wcr_award_condition_hidden" />" />	
						
						
						
			<!-- <input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_value" label="归国人员" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_name" label="归国人员"/>
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|homecoming_time" label="归国日期" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|finish_unit" label="完成单位" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_award_condition" label="曾获科技奖励情况" />
			<input type="hidden" name="zh_persons|zh_person[0]|basic_info|wcr_award_condition_hidden" label="曾获科技奖励情况" />
						 -->
						
						
						
						
						
				<td align="center">
					<span class="required " label="电子邮箱" name="zh_persons/zh_person[${flag}${index}]/contact/email">
						<x:out select="$zh_person/contact/email" />
					</span>
				</td>
				<td align="center">
					<span class="required " label="联系电话" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work">
						<x:out select="$zh_person/contact/tel_work" />
					</span>
				</td>
				<td align="center">
					<span class="required " label="工作单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name">
						<x:out select="$zh_person/basic_info/org_name" />
					</span>
					
				</td>
				<td align="center">
					<span class="required " label="学位" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name">
						<x:out select="$zh_person/basic_info/degree_name" /></span>
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value"
						value="<x:out select="$zh_person/basic_info/degree_value" />" /></td>
				<c:set var="pos">
					<x:out select="$zh_person/basic_info/position_2" />
				</c:set>
				<c:if test="${index==0}">
					<c:set var="pos">
						<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" />
					</c:set>
				</c:if>
				<td align="center">
					<span class="required " label="职务" name="zh_persons/zh_person[${flag}${index}]/basic_info/position_2">${pos}</span>
				</td>
				<td align="center">
					<span class="required " label="职称" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name">
						<x:out select="$zh_person/basic_info/prof_title_name" />
					</span>
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value"
						value="<x:out select="$zh_person/basic_info/prof_title_value" />" />
					<input type="hidden" class="" label="所学专业" name="zh_persons/zh_person[${flag}${index}]/contact/major"
						value="<x:out select="$zh_person/contact/major" />" />
					<input type="hidden" label="毕业学校" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduate_college"
						value="<x:out select="$zh_person/basic_info/graduate_college" />" />
					<input type="hidden" class="required" label="毕业时间" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduation_date"
						value="<x:out select="$zh_person/basic_info/graduation_date" />" />
					<input type="hidden" class="" label="毕业时间 time" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduation_time"
						value="<x:out select="$zh_person/basic_info/graduation_time" />" />
					<input type="hidden" class="required" label="参加本项目开始时间" name="zh_persons/zh_person[${flag}${index}]/basic_info/prj_startdate"
						value="<x:out select="$zh_person/basic_info/prj_startdate" />" />
					<input type="hidden" class="required" label="参加本项目结束时间" name="zh_persons/zh_person[${flag}${index}]/basic_info/prj_enddate"
						value="<x:out select="$zh_person/basic_info/prj_enddate" />" />
					<input type="hidden" class="" label="家庭地址" name="zh_persons/zh_person[${flag}${index}]/basic_info/home_address"
						value="<x:out select="$zh_person/basic_info/home_address" />" />
					<input type="hidden" class="" label="曾获奖励与荣誉称号情况" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_honour"
						value="<x:out select="$zh_person/basic_info/wcr_honour" />" />
					<input type="hidden" class="" label="曾获奖励与荣誉称号情况2" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_honour_hidden"
						value="<x:out select="$zh_person/basic_info/wcr_honour_hidden" />" />
					<input type="hidden" class="required" label="创造性贡献" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_creativity_contribute"
						value="<x:out select="$zh_person/basic_info/wcr_creativity_contribute" />" />
					<input type="hidden" class="" label="创造性贡献2" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_creativity_contribute_hidden"
						value="<x:out select="$zh_person/basic_info/wcr_creativity_contribute_hidden" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age"
						value="<x:out select="$zh_person/basic_info/age" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml" />
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<br />

<table border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td>
		<input class="button_02" type="button" value="添加"
			onclick="if(checkTabLimit('zh_persons',11,'主要完成人最多只能填写11条')){addNewRow('zh_persons','${ctx}/proposal/2014/edit/dialog/psnInfoEdit_kxjsjbj_dgzywcr2016?parentTab=zh_persons&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','添加主要完成人');}try{top.resizeFrame();}catch(e){};">
			&nbsp; 
		<input class="button_02" id="prev_psn" type="button" value="上移"
			onclick="movePrev('zh_persons','sel_zh_persons');setSubmitPsn3();showPsnName();">
			&nbsp; 
		<input class="button_02" id="next_psn" type="button" value="下移"
			onclick="moveNext('zh_persons','sel_zh_persons');setSubmitPsn3();showPsnName();">
			&nbsp; 
		<input class="button_02" id="zh_psnEdit" type="button" value="编辑"
			onclick="editRow('zh_persons','${ctx}/proposal/2014/edit/dialog/psnInfoEdit_kxjsjbj_dgzywcr2016?parentTab=zh_persons&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','编辑主要完成人信息')">
			&nbsp; 
		<input class="button_02" id="del_psn" type="button" value="删除"
			onclick="deleteSelectedRow2('zh_persons','完成人信息',1,'第一主要完成人不能被删除');showTable();showPsnName();"></td>
	</tr>
</table>



<script type="text/javascript">
$(document).ready(function(){
	showTable();
	showPsnName();
})

function showTable(){
	var text= $("#zh_persons").find("tr:last").find("span[name$='@seq_no']").text();
	   text = parseInt(text);
	   if (text >= 2){
		   $("#text").show();
	   }else{
		   $("#text").hide();
		   }
}



function showPsnName(){
	var i = 0;
	var t = 0;
	var PsnName="";
	for(i;i <= 10;i++){
		var PsnNameSmall="";
		if(i<=9){
			i="0" +i;
		}
		/* alert($("span[name='zh_persons/zh_person["+i+"]/basic_info/zh_name']").text()); */
		
		if(t==0){PsnNameSmall=$("span[name='zh_persons/zh_person["+i+"]/basic_info/zh_name']").text();}
		
		if($("span[name='zh_persons/zh_person["+i+"]/basic_info/zh_name']").text() != "" && $("span[name='zh_persons/zh_person["+i+"]/basic_info/zh_name']").text() != null)
		{
			if(t>0){PsnNameSmall= "、" + $("span[name='zh_persons/zh_person["+i+"]/basic_info/zh_name']").text();}
		}
		PsnName=PsnName + PsnNameSmall;
		/* alert(PsnName); */
		
		$("#main_finish_person").text(PsnName);
		
		t++;
	}
}






</script>




<div id="text" style="display: none">

<div class="t_bar"><span class="color_red">*</span>完成人合作关系情况</div>
<p><strong>注意</strong>：</p>
<p>1．合作方式限100个字；</p>
<p>2．合作者/项目排名限100个字；</p>
<p>3．合作成果限100个字；</p>
<p>4．证明材料限100个字；</p>
<table  id="cooperation_condition" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;" >
	<col width="5%" />
	<col width="5%" />
	<col width="12%" />
	<col width="12%" />
	<col width="13%" />
	<col width="13%" />
	<col width="20%" />
	<col width="20%" />
	<thead >
			<tr style="border:1px solid #B7D1E6">
				<th class="TblHead" align="center" >选择</th>
				<th class="TblHead" align="center" >序号</th>
				<th class="TblHead" align="center" >合作方式</th> 
				<th class="TblHead" align="center" >合作者/项目排名</th> 
		    <th class="TblHead" align="center" >合作起始时间</th> 
				<th class="TblHead" align="center" >合作完成时间</th> 
				<th class="TblHead" align="center" >合作成果</th> 
				<th class="TblHead" align="center" >证明材料</th> 
			</tr>
	
	</thead>
	<tbody id="tab">
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="cooperation_condition" >
		</td>
		<td align="center">
			<span name="cooperation_condition|list[0]@seq_no" >[index]</span> 
		</td>
		<td align="center">
			<input type="text" name="cooperation_condition|list[0]|cooperation_type" label="合作方式" class=" required input_text " maxlength="100" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="cooperation_condition|list[0]|cooperator" label="合作者/项目排名" class=" required input_text " maxlength="100" style="width:80%"/>
		</td>




    <td align="center">
			<input  id="milestone_start_date_[0]" name="cooperation_condition|list[0]|start_date" label="合作起始时间" value="" class=" required input_text date  dateCompare:milestone_end_date_[0] dateCompareAfterE:milestone_start_date_[0]:start_date" style="width:70px"  />
		</td>
		<td align="center">
		  <input  id="milestone_end_date_[0]" name="cooperation_condition|list[0]|end_date" label="合作完成时间" value="" class=" required input_text date dateCompareBeforeE:milestone_end_date_[0]:end_date " style="width:70px"/>
		</td> 





		<td align="center">
			<input type="text" name="cooperation_condition|list[0]|cooperation_achievement"  maxlength="100" label="合作成果"   style=" width:80%" class=" input_text required" />
		</td> 
		<td align="center">
			<input type="text" name="cooperation_condition|list[0]|prove_material"  maxlength="100" label="证明材料"   style=" width:80%" class=" input_text required" />
		</td> 
	</tr>
	
	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/cooperation_condition/list" var="list">
	
	<c:choose>
		<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
		<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
	</c:choose>
	<tr align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="cooperation_condition" >
		</td>
		<td align="center">
			<span name="cooperation_condition/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span> 
		</td>
		<td align="center">
			<input type="text" name="cooperation_condition/list[${flag}${index}]/cooperation_type"  value="<x:out select="$list/cooperation_type"/>"   label="合作方式" class=" required input_text " maxlength="100" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="cooperation_condition/list[${flag}${index}]/cooperator"  value="<x:out select="$list/cooperator"/>"   label="合作者/项目排名" class=" required input_text " maxlength="100" style="width:80%"/>
		</td>
		
		
		
		
		<td align="center">
			<c:set var="start_date" scope="page"><x:out select="$list/start_date"/></c:set>
			<input  id="milestone_start_date_[${flag}${index}]" value="${start_date}" label="合作起始时间" name="cooperation_condition/list[${flag}${index}]/start_date" class="required date input_text dateCompare:milestone_end_date_[${flag}${index}] dateCompareAfterE:milestone_start_date_[${flag}${index}]:start_date"  style="width:70px"  /> 
		</td>
		<td align="center">
			<c:set var="end_date" scope="page"><x:out select="$list/end_date"/></c:set>
			<input  id="milestone_end_date_[${flag}${index}]" name="cooperation_condition/list[${flag}${index}]/end_date" label="合作完成时间" value="${end_date}" class="required date input_text dateCompareBeforeE:milestone_end_date_[${flag}${index}]:end_date" style="width:70px" />
		</td> 
		
		
		
		
		
		
		<td align="center">
			<input type="text" name="cooperation_condition/list[${flag}${index}]/cooperation_achievement"  value="<x:out select="$list/cooperation_achievement"/>"   label="合作成果" class=" required input_text " maxlength="100" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="cooperation_condition/list[${flag}${index}]/prove_material"  value="<x:out select="$list/prove_material"/>"   label="证明材料" class=" required input_text " maxlength="100" style="width:80%"/>
		</td>	
	
	</tr>
	<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	<script type="text/javascript">
		showAllDateTag("cooperation_condition");
	</script>
</tbody>
</table>
<table width="98%" align="center" border="0" id="cooperation_condition2">
	<tr style="border: 0"><td style="border: 0">
	<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('cooperation_condition',99,'完成人合作关系情况最多只能添加99条')){addNewRow('cooperation_condition');showDateTag('cooperation_condition');try{top.resizeFrame();}catch(e){};}">
	<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev2('cooperation_condition','cooperation_condition')">
	<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext2('cooperation_condition','cooperation_condition')">
	<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('cooperation_condition','完成人合作关系情况')">
	</td></tr>
</table>	



<div class="t_bar">完成人合作关系说明（限1000字）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="person_cooperation_introduction" cellspacing="1" style="table-layout:fixed;">
	<col width="20%;"/>
	<col width="25%;"/>
	<col width="20%;"/>
	<col width="20%;"/>
	<col width="25%;"/>
	<tr class="li_2">
		<td  colspan="5" >
			<textarea rows="10" style="width: 888px;" name='proposal/cooperation_relationship_introduction' class="input_textarea maxlength:1000"   label="完成人合作关系说明"><x:out select="$xmlData/data/proposal/cooperation_relationship_introduction"/></textarea>
	      <input type='hidden' name='proposal/cooperation_relationship_introduction_hidden' id='cooperation_relationship_introduction_hidden' value=''>
		</td>
	</tr>
</table>



</div>






<script type="text/javascript">
function deleteSelectedRow2(tableId,message,nummin,warnMsg,selName){
	
	if(!selName)selName="";
	var tr=$("#"+tableId+" :radio[name*='"+selName+"']:checked").parents("tr");
	if(nummin==null)
		nummin=0;
	var length=tr.length;
	if(tr.length==0)
		tr=$("#"+tableId+" tr").filter(":last");
	else if(tr.length>1)
		tr=tr.first();

	if(tr.get(0).rowIndex-1==nummin){
		scmWarn(warnMsg);
		return false;
	} 
	if(length==0){
		//deleteSucceeded
			scmWarn(irisNotes.delWarn2);
		
		return false;
	}
	  if(!confirm(messageTip.deleteTip+message+"？"))
		  return false;
	  tr.remove();
	  refreshRowINdex(tableId);
	  return true;
}



	/**
	 * 锁定申报人行的按钮
	 */

	/* 	$(document).ready(function() {

	 setSubmitPsn3();
	 }); */

	function checkSubmitPsn(tableId) {

		return true;

	}

	function setSubmitPsn3() {

	 	var tr = $("#zh_persons :radio:checked").parents("tr");
	 	if(tr.length == 0){
	 		return false;
	 	}
	 	
		if (tr.get(0).rowIndex - 1 == 1) {// 如果选择的是申报人
			$("#prev_psn").attr("disabled", "true").css("color", "#808080");
			$("#next_psn").attr("disabled", "true").css("color", "#808080");
			$("#del_psn").attr("disabled", "true").css("color", "#808080");

			//alert("申报人");

		} else if (tr.get(0).rowIndex - 1 == 2) {// 如果是申报书的下一行
			$("#prev_psn").attr("disabled", "true").css("color", "#808080");
			$("#next_psn").removeAttr("disabled").css("color", "#003366");
			$("#del_psn").removeAttr("disabled").css("color", "#003366");
			//alert("申报人下一行");
		} else {
			$("#prev_psn").removeAttr("disabled").css("color", "#003366");
			$("#next_psn").removeAttr("disabled").css("color", "#003366");
			$("#del_psn").removeAttr("disabled").css("color", "#003366");
			//alert("其他行");
		} 

	}

	function psnSynchro() {
		$("span[name$='fzr_psnname']").text(
				$("#zh_persons tr:eq(2)").find(
						"span[name$='basic_info/zh_name']").text());
		$("span[name$='fzr_tel']").text(
				$("#zh_persons tr:eq(2)").find(
						"input[name$='contact/tel_work']").val());
		$("span[name$='fzr_tel_work']").text(
				$("#zh_persons tr:eq(2)").find(
						"input[name$='contact/tel_work']").val());
		$("span[name$='fzr_mail']").text(
				$("#zh_persons tr:eq(2)").find("input[name$='contact/email']")
						.val());
	}

	function irisJqValEmpty2(obj, msg) {

		var sum = 0;
		obj.find(":input,textarea").each(function() {

			if ($(this).val() == '') {
				alert($(this).attr("name") + "  " + $(this).val());
				sum += 1;
			}
		});

		if (sum != 0)
			irisValaddMsg(msg);

	}
</script>



